package cc.lj.internal.payment.interfaces.dto.convert;

import cc.lj.internal.api.coupons.dto.CouponsSettlementApiDTO;
import cc.lj.internal.api.coupons.dto.TicketPayRecordApiDTO;
import cc.lj.internal.api.coupons.dto.command.TicketPayRecordApiUpdateCommand;
import cc.lj.internal.payment.domain.pay.vo.CouponsSettlementDO;
import cc.lj.internal.payment.domain.pay.vo.TicketPayRecordDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 合同收券表表DO与DTO转换
 * @author liangxifeng
 * @date 2021-12-13
 */
@Mapper
public interface TicketPayRecordDTOConvertDO {
    TicketPayRecordDTOConvertDO INSTANCE = Mappers.getMapper(TicketPayRecordDTOConvertDO.class);
    //dto to do
    TicketPayRecordDO convert(TicketPayRecordApiDTO ticketPayRecordApiDTO);

    //to to apicommand
    TicketPayRecordApiUpdateCommand convert(TicketPayRecordDO ticketPayRecordDO);
}
